﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Model;
namespace DAL
{
    public class GradeDAL
    {

        public DbContext db { get; set; }= new MyDbContext();
        //DbContext db = new MyDbContext();
        //MyDbContext db = new MyDbContext();
        public IQueryable<Grade> Getlist(Expression<Func<Grade,bool>> where) 
        {
           return  db.Set<Grade>().AsNoTracking().Where(where);
        }

        //public List<Grade> Gerlist(Grade grade) 
        //{
           
        //}

    }
}
